import Vue from 'vue'
import {
  strict
} from 'assert';

const state = {
  activeModule: [], //初始时激活的模块,
  showBaseMapLayer: false, //空间查询-底图切换控制显示隐藏
  showBaseChartLayer: false, //空间查询-专题图层控制显示隐藏
  showPeripheralList: false, //空间查询-周边查询结果数据列表
  showChartBtnLayer: true, //空间查询-专题图层按钮显示隐藏
  showmacroqueryall: false, //空间查询-专业查询所有条件面板
}

const getters = {

}

const mutations = {
  changeBaseMapLayer(state, flag) {
    state.showBaseMapLayer = flag;
  },
  changeBaseChartLayer(state, flag) {
    state.showBaseChartLayer = flag;
  },
  changeActiveModule(state, acModule) {
    state.activeModule = acModule;
  },
  changePeripheralList(state, flag) {
    state.showPeripheralList = flag;
  },
  changeshowChartBtnLayer(state, flag) {
    state.showChartBtnLayer = flag;
  },
  //改变综合查询-所有条件展示隐藏
  changeshowmacroqueryall(statue, flag) {
    state.showmacroqueryall = flag;
  }

}

export default {
  state,
  getters,
  mutations
}
